﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.BaseData.Manage.Domain.Entities
{
    /// <summary>
    /// 库存
    /// </summary>
    public class Inventory
    {
        /// <summary>
        /// （主键）
        /// </summary>
        [Key]
        public int InventoryId { get; set; }
        /// <summary>
        /// 产品编号
        /// </summary>
        public string Product_id {  get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string Product_name { get; set; }
        /// <summary>
        /// 产品规格
        /// </summary>
        public string? Spec {  get; set; }
        /// <summary>
        /// 类别（如移动电源、设备）
        /// </summary>
        public string? Category {  get; set; }
        /// <summary>
        /// 存储单位（个、台）
        /// </summary>
        public string? Storage_unit {  get; set; }
        /// <summary>
        /// 仓库编号
        /// </summary>
        public string? Warehouse_id { get; set; }
        /// <summary>
        /// 仓库名称（如 3 号仓库）
        /// </summary>
        public string? Warehouse_name { get;set; }
        /// <summary>
        /// 库位编号
        /// </summary>
        public string? Location_id { get; set; }
        /// <summary>
        /// 库位名称（如默认报废库位）
        /// </summary>
        public string? Location_name { get; set;}
        /// <summary>
        /// 库位类型（报废库区等）
        /// </summary>
        public string? Location_type { get; set;}
        /// <summary>
        /// 库存数量
        /// </summary>
        public int? Stock_quantity { get; set;}
        /// <summary>
        /// 库存上限
        /// </summary>
        public int? upper_limit { get; set;}
        /// <summary>
        /// 库存下限
        /// </summary>
        public int? lower_limit { get; set;}
    }
}
